package com.atguigu.flow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author zhl
 * @create 2021/9/7 13:58
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("TB_DC_USER")
public class UserListBO extends PageBO<UserListBO> {
    @TableId(value = "ID", type = IdType.INPUT)
    private String id;
    @TableField(value="[user]")
    private String user;
    private String password;
    private String name;
    private String originId;
    private String isLocked;
    private String remark;
    private String roleId;
    private Integer dataAuthority;

    @TableField(exist = false)
    private String customerId;

    @TableField(exist = false)
    private String roleName;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy/MM/dd HH:mm:ss")
    private Date createdDate;

    @TableField(exist=false)
    private Integer pageSize;
    @TableField(exist=false)
    private Integer pageIndex;

}
